package com.hl.sfzy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 我的通知
 * @TableName mynotice
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MyNotice {
    /**
     * 我的通知id
     */
    private Integer myNoticeId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 通知标题
     */
    private String myNoticeTitle;

    /**
     * 通知内容
     */
    private String myNoticeDetails;

    /**
     * 通知时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date myNoticeCreatetime;

    private User user;
}